package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerGameDifficultyItem implements IQLResponse
{
    /// <summary>
    /// 游戏组Id
    /// </summary>
    public long GroupId;

    /// <summary>
    /// 游戏玩法Id
    /// </summary>
    public long ServiceId;

    /// <summary>
    /// 难度级别
    /// </summary>
    public long DifficultyLevel;

    /// <summary>
    /// 操作员
    /// </summary>
    public String Operater;

    /// <summary>
    /// 操作时间
    /// </summary>
    public String CreateTime;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj;
        if (t.has("group_id"))
            GroupId = t.getLong("group_id");
        if (t.has("service_id"))
            ServiceId = t.getLong("service_id");
        if (t.has("difficulty_level"))
            DifficultyLevel = t.getLong("difficulty_level");
        if (t.has("operater"))
            Operater = t.getString("operater");
        if (t.has("create_time"))
            CreateTime = t.getString("create_time");
    }
}
